Cross-platform setup -- Windows side

This section goes through the steps that you must complete on Windows for configuring SNiFF+ for cross-platform development.
Initial remarks
No team directories need to be created on the Windows side, since all project-relevant files are located on a Unix machine (in this example, the name of the machine is

BRUTUS ). The only required directory is
Project1/cross
This directory should be created in each team member's home directory.
Note that standard Windows UNC notation (e.g., \\brutus\Projects ) cannot be used when specifying directories in SNiFF+. As a result, network resources must be mapped to a network drive. In this example, we assume that \\brutus\Projects is mapped to the F drive.
Setting necessary variables and links
We are now ready to set the variables and links necessary on the Windows side for cross-platform development.
In the shell

Set an environment variable called

WS_CROSS to the root of your shared working environments on Unix. In this example, WS_CROSS would be set to:
F:\Projects\work\cross
(Remember that /Projects/work/cross contains the individual root directories of the RWE, SSWE and SOWE.)
An environment variable called WS_CROSS is now set on both Unix and Windows to the same directory (which is physically located on the Unix side).
For each user, set an environment variable called HOME . In this example HOME for user1 would be set to HOME=D:\Users\user1 . For user2 , HOME would be set to HOME=D:\Users\user2 .
(Remember that all home directories on Windows in this example are located in the D:\Users\ directory.)
Launch SNiFF+.
In SNiFF+

Choose Tools > Preferences... in any open SNiFF+ tool.
The Preferences dialog appears.
Select the Tools > Working Environments node.
Enter

$WS_CROSS in the Working Environment Config. Directory field.
Your working environment files will be stored in the directory specified by $WS_CROSS .
Quit SNiFF+.
The necessary attributes have now been set on both Unix and Windows. The next step is to set up the working environments necessary for cross-platform projects. To ensure that the project directories for the cross-platform project have the correct permissions, we recommend that you perform this setup on the Unix side.
Setting up the working environments
How to set up working environments is covered in the language-specific tutorials supplied with your SNiFF+ package. This section only covers those steps needed for cross-platform development. For instructions on how to define working environments and specify their root directories, please refer to the tutorial for your language.
The following steps should be completed by your Working Environments Administrator (WEAdmin).

- Launch SNiFF+.

In SNiFF+

Open the Working Environment tool by choosing Tools > Working Environments.
The Working Environment tool appears.
Choose Utils > User Permissions....
The Users dialog appears.
Give yourself (the WEAdmin) permission to create all four types of working environments.
Create your working environments.

In the shell

- Set group read/write permissions for the Unix directory

$WS_CROSS/.WEProjectCache
chmod g+w $WS_CROSS/.WEProjectCache
This directory is generated when you press the Update List button in the Projects dialog of the Working Environments tool.
Example Working Environments Tree
In this document, the working environment root directories are:

- On Unix, for the RWE, SSWE and SOWE:

/Projects/work/cross/rwe
/Projects/work/cross/sswe
/Projects/work/cross/sowe
- On Unix, for the PWEs of
user1 and user2 :
/Users/user1/project1/cross
/Users/user2/project1/cross
- On Windows, for the PWEs of
user3 and user4 :
D:\Users\user3\project1\cross
D:\Users\user4\project1\cross
Based on this information, the Working Environments Tree for this example would be:

RWE: Unix_REPOSITORY | (Directory $WS_CROSS/rwe)
| SSWE: Unix_SSWE | (Directory $WS_CROSS/sswe)
|  | SOWE: Unix_SOWE | (Directory $WS_CROSS/sowe)
|  |  | PWE: PWE_Unix_user1 | (Directory $HOME/Project1/cross ; Owner user1)
|  |  | PWE: PWE_Unix_user2 | (Directory $HOME/Project1/cross ; Owner user2)
|  |  | PWE: PWE_Windows_user3 | (Directory $HOME/Project1/cross ; Owner user3)
|  |  | PWE: PWE_Windows_user4 | (Directory $HOME/Project1/cross ; Owner user4)